{ pkgs ? import <nixpkgs> {} }:

with pkgs;

let

  erlang = pkgs.beam.packages.erlangR22.erlang;
  rebar3 = pkgs.beam.packages.erlangR22.rebar3;

in
mkShell {
  buildInputs = [ erlang rebar3 ];

  ERL_INCLUDE_PATH="${erlang}/lib/erlang/usr/include";
}
